package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Timestamp;

@TableName("booking")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookingPojo {
    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookId;

    @TableField(value = "patient_id")
    private String patientId;

    @TableField(value = "book_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp bookDate;

    @TableField(value = "book_status")
    private Integer bookStatus;

    @TableField(value = "book_remark")
    private String bookRemark;

    @TableField(value = "book_delete")
    private Integer bookDelete;

    @TableField(value = "book_items")
    private String bookItems;
}
